#ifndef TOOL_H
#define TOOL_H

typedef enum
{
    nums_units = 1, //个位
    nums_tens = 10, //十位
    nums_hundreds = 100, //百位
}_Num_unit;

typedef enum
{
    Pt1000_Normal = 0, //Pt1000正常
    Pt1000_Short, //Pt1000短路
    Pt1000_Open, //Pt1000开路
}_Pt1000_State;
extern _Pt1000_State Pt1000_State;


uint32_t GetNums(uint32_t dat,_Num_unit bit);
double AD_Convert_R(uint32_t ad);
float V_Convert_R(float Vdd,float V_Div);
double Quadratic_F(double R_x);

#endif
